<?php
/**
 * Organizations Model for Room Booking Component
 * 
 * @version 1.0
 * @package    Joomla
 * @subpackage RoomBooking
 * @copyright (C) 2011 Giovanni Marzulli
 * @license		GNU/GPL
 */
 
// No direct access
 
defined( '_JEXEC' ) or die( 'Restricted access' );
 
jimport( 'joomla.application.component.model' );
 

class RoomBookingModelOrganizations extends JModel
{
    /**
    * Gets the organizations
    * @return array Array of objects containing the data from the database
    */
    function getOrganizations()
    {
		$db =& JFactory::getDBO();
 
  		$query = 'SELECT * FROM #__roombooking_organizations';
   		$organizations = $this->_getList( $query );
   		
   		return $organizations;
    	
    }
    
 
}
